import { IsNotEmpty, IsOptional } from 'class-validator';
import { Type } from 'class-transformer';

export class CreateSpecDto {

  @IsNotEmpty()
  goodId: number

  @IsNotEmpty()
  name: string;

  @IsOptional()
  remake?: string;

}

export class CreateSpecValueDto {
  @IsNotEmpty()
  value: string;

  @IsNotEmpty()
  @Type(() => Number)
  id: number;
}